# -*- coding: utf-8 -*-
# created by Src - 一路好时光

f=open('联系人','r',encoding='utf-8')
for line in f:
    # print(line,end='')
    line = line.split()
    # print(line)
    height=int(line[3])
    weight=int(line[4])
    if height>=170 and weight<=50:
        print(line)